﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace ConsolidationTool.WebParts.ControlTemplates.FS.Template
{
    public partial class KoInsertTemplate : UserControl
    {
        public string ListTitle { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            string[] templateLocationSplit = ListTitle.Split('_');
            template_area.Controls.Add(Page.LoadControl(@"~/_CONTROLTEMPLATES/FS.Template/" + templateLocationSplit[0] + "_Template/" + ListTitle + ".ascx"));
        }
    }
}
